package com.mysteel.authserver.config;

import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static java.util.concurrent.TimeUnit.SECONDS;

/**
 * ProjectName: mail
 * ClassName: FeignClientConfig
 * Description:
 * date: 2021/03/22/022 19:14
 *
 * @author xiaochao
 */
@Configuration
public class FeignClientConfig {
    @Bean
    public Retryer retryer(){
        return new Retryer.Default(100, SECONDS.toMillis(1), 1);
    }
}
